Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Kills spec_updatehealth, replaces it with use of COMSIG_LIVING_HEALTH_UPDATE #766

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24152
Original PR: tgstation/tgstation#78772

About The Pull Request

Quick refactor, replaces spec_updatehealth with use of COMSIG_LIVING_HEALTH_UPDATE.

spec_updatehealth was only used by one species, ethereals, and it was used in a (in my opinion) janky way by calling spec_updatehealth constantly.

This has one downside - COMSIG_LIVING_HEALTH_UPDATE is NOT sent if the mob is in godmode, while spec_updatehealth was, which means godmoded ethereals may not update 100% accurately according to their health before entering godmode, but I doubt this will come into play often at all.

  • I tested this PR

Why It's Good For The Game

updatehealth is kinda hot, not turbo hot but a little hot, so this helps performance a bit.

Changelog

🆑 Melbert
refactor: Refactors how ethereals update their color when damaged.
/:cl:

…IVING_HEALTH_UPDATE` [MDB IGNORE] (#24152)

* Kills `spec_updatehealth`, replaces it with use of `COMSIG_LIVING_HEALTH_UPDATE`

* Diffs

---------

Co-authored-by: MrMelbert <[email protected]>
Co-authored-by: Giz <[email protected]>
@Steals-The-PRs Steals-The-PRs added Mirroring conflict git cherry-pick во что-то уткнулся. Не ставить вручную, только для бота TG Mirror Refactoring labels Nov 21, 2023
@Iajret Iajret merged commit 8cd0026 into master Nov 23, 2023
23 checks passed
@Iajret Iajret deleted the upstream-mirror-24152 branch November 23, 2023 20:52
AnywayFarus added a commit that referenced this pull request Nov 23, 2023
Iajret pushed a commit that referenced this pull request Feb 4, 2024
…s. (#766)

* Fixes burning a bible giving you an infinite amount of curses. (#81248)

## About The Pull Request
Burning a bible now gives you 1 curse, instead of INFINITY curses.
## Why It's Good For The Game
It looks like tgstation/tgstation#78899 forgot
about bible curses.
I think this was an oversight.
## Changelog
:cl:
fix: burning a bible no longer gives you INFINITY curses
/:cl:

* Fixes burning a bible giving you an infinite amount of curses.

---------

Co-authored-by: Xander3359 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mirroring conflict git cherry-pick во что-то уткнулся. Не ставить вручную, только для бота Refactoring TG Mirror
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants